<?php
class YouNet_Form_Element_Language extends Zend_Form_Element_Select
{
	private $_specs = 'language';
	private $_options = array(
		'label'			=> 'LABEL_CONTEST_LANGUAGE',
		'multioptions'	=> array(
			'en_US' => 'English',
			'vi_VN' => 'Tiếng Việt'
		)
	);
	
	public function __construct($specs = NULL, $options = NULL)
	{
		if (isset($specs))
			$this->_specs = $specs;
		if (isset($options))
			$this->_options = array_merge($this->_options, $options);
			
		parent::__construct($this->_specs, $this->_options);
		$this->getDecorator('Label')->setOption('escape', false);         
	}
}